# CONFIG
# This configuration defines a level or group of related levels; it depends
# on the preconfig config file being loaded; this config only populates the
# world with already defined objects.. those objects should be defined in the
# preconfig if they are generic. If they belong only in this level, perhaps
# they should be defined here..
#

#
# Chip's Challenge in Zot! by Matt Sephton <matt@ewtoo.org>
#

# include preconfig config
config-read	preconfig.txt

# post intro messages
post-message    "Chip's Challenge"

# define the tiles for use on floors in this config
#
tile	   	.
name		floor
image		imgFloor
tile		end

tile	   	@
name		floorstart
image		imgFloor
option		starthere
tile		end

tile	   	c
name		chip
image		imgChip
tile		end

tile	   	q
name		question
image		imgQuestion
tile		end

tile	   	X
name		wall
image		imgWall
option		impassable
tile		end

tile	   	l
name		lock
image		imgLock
option		impassable
tile		end

tile	   	e
name		exit
image		imgExit
tile		end

tile	   	r
name		door_red
image		imgDoorRed
tile		end

tile	   	g
name		door_green
image		imgDoorGreen
tile		end

tile	   	b
name		door_blue
image		imgDoorBlue
tile		end

tile	   	y
name		door_yellow
image		imgDoorYellow
tile		end

# make up a floor based on all those tiles
#
tilemap		level1
width		15
height		14
#		123456789012345
row		..XXXXX.XXXXX..	#1
row		..X...XXX...X..	#2
row		..X...XeX...X..	#3
row		XXXXXgXlXgXXXXX	#4
row		X...b.....r...X	#5
row		X...X..q..X...X	#6
row		XXXXX..@..XXXXX	#7
row		X...X.....X...X	#8
row		X...r.....b...X	#9
row		XXXXXXyXyXXXXXX	#0
row		....X..X..X....	#1
row		....X..X..X....	#2
row		....X..X..X....	#3
row		....XXXXXXX....	#4
tilemap end

# pop out some sprites; origin is (1,1)
sprite-list		level1
key-red			10,6
key-red			10,8
key-green		9,13
key-green		9,13
key-blue		6,6
key-blue		6,8
key-yellow		3,5
key-yellow		13,5
chip			5,3
chip			11,3
chip			3,6
chip			13,6
chip			6,7
chip			10,7
chip			3,8
chip			13,8
chip			8,9
chip			7,12
chip			9,12
sprite-list	end

# which floor are we starting on in this level?
startmap        level1

